STEP 3: Now we'll ask the user a question. The user will enter a response. This is called user input.

We store user input by setting up a variable to hold whatever response the user enters. This is an input variable.

  • Click on . Drag out Ask. Change the question in quotes to "What's your name?"
  • Change the input variable, to the left of the equal sign, to user_name.
  • Run the activity to see your sprite ask a question.


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)